package com.huaxiafinance.management.dto.request;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by huangwencheng on 2017/12/07.
 */
public class PackageDto {

    //订单状态 1-全部、2-待支付、3-已支付、4-已取消
    @NotNull(message = "订单状态不为空")
    private Integer type;
    //套餐类别  P加盟套餐 Z会员套餐
    @NotBlank(message = "套餐类别不能为空")
    private String packageType;

    @NotNull(message = "userUuid不能为空")
    private String userUuid;

    private Integer page;

    @Min(value = 2, message = "分页最小行数为5")
    @Max(value = 50, message = "分页最大行数为50")
    private Integer rows;

    private String startDate;

    private String endDate;

    private Date startTime;

    private Date endTime;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "PackageDto{" +
                "type=" + type +
                ", packageType='" + packageType + '\'' +
                ", userUuid='" + userUuid + '\'' +
                ", page=" + page +
                ", rows=" + rows +
                ", startDate='" + startDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
